//
//  NetWorkService.h
//  DailyRecord
//
//  Created by Gin on 2022/3/27.
//

#import <Foundation/Foundation.h>
#import "NetWorkManager.h"

typedef void(^ServiceRequestSuccessBlock) (id _Nullable responseObj);

typedef void(^ServiceRequestFailBlock) (NSError * _Nullable error);

NS_ASSUME_NONNULL_BEGIN

@interface NetWorkService : NSObject

+ (void)serviceGetWithPath:(NSString *)path
              parameters:(id)parameters
                 success:(ServiceRequestSuccessBlock)success
                 failure:(ServiceRequestFailBlock)failure;

+ (void)servicePostWithPath:(NSString *)path
               parameters:(id)parameters
                  success:(ServiceRequestSuccessBlock)success
                  failure:(ServiceRequestFailBlock)failure;

@end

NS_ASSUME_NONNULL_END
